<?php

function defaultGetData($key, $value)
{
    if (array_key_exists($key, $_GET)) {
        return addslashes($_GET[$key] == null ? $value : $_GET[$key]);
    } else {
        return addslashes($value);
    }
}


$objectId = defaultGetData('objectId', '');
if (!$objectId) {
    die(json_encode(array(
        'code' => 999,
        'msg' => '参数缺失'
    )));
}


header('location: http://sharewh1.xuexi365.com/share/download/' . $objectId);
